<?php

Yii::import('application.models._base.BaseAccessLog');

class AccessLog extends BaseAccessLog
 {
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
    
	public function beforeSave() {
	    if ($this->isNewRecord) {
            if ($this->hasAttribute('crdate')) {
                $this->crdate = time();
            }
		}	 
	    return parent::beforeSave();
	}	    
    
}